package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.AlertRule;
import com.zzyl.vo.AlertRuleVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AlertRuleMapper {
    void create(AlertRule alertRule);

    Page<AlertRuleVo> getPage(String alertRuleName, String functionName, String productKey);

    AlertRule readById(Long id);

    void updateById(AlertRule alertRule);

    void deleteById(Long id);

    void updateStatus(Long id, Integer status);

    List<AlertRuleVo> getAll();

    List<AlertRule> selectByFunctionId(String functionId, String iotId, String productKey);
}
